package com.lys.eduservice.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lys.eduservice.entity.EduTeacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lys.eduservice.entity.vo.TeacherQueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 讲师 Mapper 接口
 * </p>
 *
 * @author Lyyyys
 * @since 2021-02-07
 */
public interface EduTeacherMapper extends BaseMapper<EduTeacher> {
    //带条件查询的分页
    List<EduTeacher> pageQuery(
            @Param("page") Long page,
            @Param("limit") Long limit,
            @Param("teacherQueryVo") TeacherQueryVo teacherQueryVo
    );

    List<EduTeacher> getHotTeacherLimit();
}
